Excel for WinRT
Add(String,XLCellRange[]) Method


The name of the named range to create.
The array of XLCellRange to include in the named range.
Creates an XLNamedRange object and appends it to the collection.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal name As System.String, _
   ByVal cellRanges() As XLCellRange _
) As XLNamedRange
'Usage
 
Dim instance As XLNamedRangeCollection
Dim name As System.String
Dim cellRanges() As XLCellRange
Dim value As XLNamedRange
 
value = instance.Add(name, cellRanges)
public XLNamedRange Add( 
   System.string name,
   XLCellRange[] cellRanges
)

Parameters

name
The name of the named range to create.
cellRanges
The array of XLCellRange to include in the named range.

Return Value

A reference to the object if it was successfully added to the collection, or null if the object could not be added (usually because it overlaps another cell range already in the collection).
See Also

Reference

XLNamedRangeCollection Class
XLNamedRangeCollection Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback